package com.ruiyian.bridge.info.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruiyian.common.annotation.Excel;
import com.ruiyian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 超限预警日志
 * @Author: jeecg-boot
 * @Date:   2020-08-25
 * @Version: V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_sensor_warning_log")
public class SensorWarningLog{
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.AUTO)
    private Long id;
	/**测点ID*/
	@Excel(name = "测点ID", width = 15)
    private Long sensorId;
	/**测点编号*/
	@Excel(name = "测点编号", width = 15)
    private String sensorNo;
	/**测点类型*/
	@Excel(name = "测点类型", width = 15)
    private Integer sensorType;
	/**采集日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date sensorTime;
	/**实测值*/
	@Excel(name = "实测值", width = 15)
    private Double sensorVlue;
	/**预警等级ID*/
	@Excel(name = "预警等级ID", width = 15)
    private String sensorWarnId;
	/**预警等级*/
	@Excel(name = "预警等级", width = 15)
    @ApiModelProperty(value = "预警等级")
    private String warnDgree;
	/**预警值*/
	@Excel(name = "预警值", width = 15)
    private Double limitUpVlue;
	/**处理时间*/
	@Excel(name = "处理时间", width = 15, dateFormat = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date settleTime;
	/**处理人*/
	@Excel(name = "处理人", width = 15)
    private String settleUser;

	@Excel(name = "是否处理，0未处理，1已处理", width = 15)
    private Boolean settleFlag;

	/**处理意见*/
	@Excel(name = "处理意见", width = 15)
    private String settleOpinion;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

	@Excel(name = "设备所在地址", width = 255)
	private String sensorAddress;

	@Excel(name = "桥梁id", width = 15)
	private Long bridgeId;
	private List<Date> beginTime;

}
